package com.distributer.order.event;

import org.springframework.context.ApplicationEvent;

import com.distributer.order.model.Order;

public class OrderCreateEvent extends ApplicationEvent{

	private static final long serialVersionUID = 6735566177644715181L;

	private final Order order;
	
	public OrderCreateEvent(Object source,final Order order) {
		super(source);
		this.order = order;
	}
	
	public OrderCreateEvent(final Order order) {
		super(order);
		this.order = order;
	}

	public Order getOrder(){
		return this.order;
	}
}
